// const TokenKey = 'Admin-Token';

// const tokenStorage = useStorage<null | string>(TokenKey, null);

// export const getToken = () => tokenStorage.value;

// export const setToken = (token: string) => (tokenStorage.value = token);

// export const removeToken = () => (tokenStorage.value = null);


import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token:any) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  Cookies.remove('password')
  return Cookies.remove(TokenKey)
}
